<div class="top">
	<div class="logo"><img src="{sc:$Sys.TemDir#}{sc:$Web.WebLogo#}" border="0" /></div>
	<div class="right">
		<ul class="regandlang">
			<li>
				{sc:dynamic#}
				{sc:if $Sys.isLogin != "songcms"#}
				<a href="{sc:$Sys.URL.Reg#}">{sc:$Html.NewReg#}</a> | <a href="{sc:$Sys.URL.LoginSub#}">{sc:$Html.Login#}</a> |
				{sc:else#}
				<a href="{sc:$Sys.URL.ChanUser#}">{sc:$Html.Modify#}</a> | <a href="{sc:$Sys.URL.OutLogin#}">{sc:$Html.ExitLogin#}</a> |
				{sc:/if#}
				{sc:/dynamic#}
				{sc:foreach key=i item=v from=$AllLang#}<a href="{sc:$v.URL#}">{sc:$v.Name#}</a> | {sc:/foreach#}
				{sc:if $Sys.isTraditional==1#}<a title="點擊以繁體中文方式浏覽" id="StranLink" href="javascript:">繁體中文</a>{sc:/if#}
			</li>
			<li><span class="top_pics"><img src="{sc:$Sys.TemDir#}images/top_pics.png" /></span></li>
		</ul>
		<ul class="servicespics">
			<li><img src="{sc:$Sys.TemDir#}images/top_services{sc:$Sys.Lang#}.gif" width="90" height="25" border="0" /></li>
		</ul>
		<ul class="webtel">
			<li>{sc:$Web.WebTel1#}</li>
		</ul>		
	</div>
</div>
<div class="navigation">
	<ul>
	<ul>
		{sc:foreach item=navi key=i from=$navis#}
		<li id="{sc:$navi.ClassID#}">{sc:if (($navi.sModu == 0 && $TemFile == 'index.html') || ($navi.sModu == 1 && ($TemFile == 'products.html' || $TemFile == 'product.html')) || ($navi.sModu == 2 && ($TemFile == 'news.html' || $TemFile == 'new.html')) || ($navi.sModu == 3 && $TemFile == 'feedback.html') || ($navi.sModu == 4 && $TemFile == 'guestbook.html') || ($navi.sModu == 5 && $pe.RootID == $navi.sNCid) || ($navi.sModu == 6 && $TemFile == 'download.html'))#}
		<a {sc:if $navi.sModu=="7"#}target="_blank"{sc:/if#} href="{sc:$navi.URL#}" style="background:url({sc:$Sys.TemDir#}images/top_button_bg.gif) no-repeat left -37px;">{sc:$navi.sName#}</a>
		{sc:else#}<a {sc:if $navi.sModu=="7"#}target="_blank"{sc:/if#} href="{sc:$navi.URL#}">{sc:$navi.sName#}</a>
		{sc:/if#}</li>
		{sc:/foreach#} 
	</ul>
	</ul>
</div>
<div class="announcement">
	<ul>
		<li><img src="{sc:$Sys.TemDir#}images/announcement.gif" width="20" height="16" border="0"></li>
		<li id="announ">
			{sc:* Rela为公告类别ID号 *#}
			{sc:if $Sys.Lang == 1#}
			{sc:article->sList Sort="0" Rela="000386" isImg="0" Start="0" Total="5" BackVar='anno'#} {sc:* 中文 *#}
			{sc:elseif $Sys.Lang == 2#}
			{sc:article->sList Sort="0" Rela="000387" isImg="0" Start="0" Total="5" BackVar='anno'#} {sc:* 英文 *#}
			{sc:/if#}
			{sc:foreach from=$anno item=an key=i name=x#}
			<a target="_blank" href="{sc:$an.URL#}">{sc:$an.ArticleTitle#}</a><br />
			{sc:/foreach#}
		</li>
		<li id="date">Loading ...</li>
	</ul>
</div>
<script language="javascript" type="text/javascript">
new Marquee("announ",0,2,600,29,5,3000,3000,29);
Date.prototype.pattern=function(fmt) {        
	var o = {        
		"M+" : this.getMonth()+1, //月份        
		"d+" : this.getDate(), //日        
		"h+" : this.getHours()%12 == 0 ? 12 : this.getHours()%12, //小时        
		"H+" : this.getHours(), //小时        
		"m+" : this.getMinutes(), //分        
		"s+" : this.getSeconds(), //秒        
		"q+" : Math.floor((this.getMonth()+3)/3), //季度        
		"S" : this.getMilliseconds() //毫秒        
	};        
	var week = {        
		"0" : "\u65e5",        
		"1" : "\u4e00",        
		"2" : "\u4e8c",        
		"3" : "\u4e09",        
		"4" : "\u56db",        
		"5" : "\u4e94",        
		"6" : "\u516d"       
	};        
	if(/(y+)/.test(fmt)){        
		fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));        
	}        
	if(/(E+)/.test(fmt)){        
		fmt=fmt.replace(RegExp.$1, ((RegExp.$1.length>1) ? (RegExp.$1.length>2 ? "\u661f\u671f" : "\u5468") : "")+week[this.getDay()+""]);        
	}        
	for(var k in o){        
		if(new RegExp("("+ k +")").test(fmt)){        
			fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));        
		}        
	}        
	return fmt;        
}
{sc:if $Sys.Lang == "1"#}
setInterval("document.getElementById('date').innerHTML = new Date().pattern('yyyy年MM月dd日 hh:mm:ss EEE'); ",1000);
{sc:else#}
setInterval("document.getElementById('date').innerHTML = new Date().pattern('yyyy-MM-dd hh:mm:ss'); ",1000);
{sc:/if#}
</script>